package cn.rkylin.oms.common.domain;

import org.apache.commons.lang.StringUtils;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public final class ParameterDecoder {

    public static String decode(String value) {
        if (StringUtils.isNotBlank(value)) {
            try {
                return URLDecoder.decode(value, "UTF-8");
            } catch (UnsupportedEncodingException ignore) {}
        }

        return value;
    }

}
